//
//  CMSChartsConfigModel.h
//  CMSCharts
//
//  Created by symbio on 2023/2/20.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    CMSChartsTypeTimeSharing,   /// 分时图
    CMSChartsTypeTimeSummerUS,  /// 美股夏令分时
    CMSChartsTypeTimeWinterUS,  /// 美股冬令分时
    CMSChartsTypeTimeEU,        /// 欧股分时
    CMSChartsTypeTimeHK,        /// 港股股分时
    CMSChartsTypeFiveDay,       /// 五日图
    CMSChartsTypeCandleStick,   /// K线
    CMSChartsTypeOrdinaryIndex, /// 普通指标
    CMSChartsTypeKLineIndex     /// K线指标
} CMSChartsType;

typedef NS_ENUM(NSInteger, CMSAlertViewHideType) {
    CMSAlertViewHideTypeClicked = 0, //点击时弹框消失
    CMSAlertViewHideTypeKeep  //点击按钮时弹框不消失，返回时才消失
};

NS_ASSUME_NONNULL_BEGIN

@interface CMSChartsConfigModel : NSObject
/// 标识符
@property (nonatomic, copy) NSString *ID;
/// 当前标签名
@property (nonatomic, copy) NSString *name;
/// 主图所使用类型
@property (nonatomic, copy) NSString *type;
@property (nonatomic, assign, readonly) CMSChartsType chartType;

/// 附图数量
@property (nonatomic, assign) NSInteger subChartCount;
/// 是否竖屏显示
@property (nonatomic, assign) BOOL vertical;
/// 是否横屏显示
@property (nonatomic, assign) BOOL horizontal;
/// 是否默认选中, (只允许有一个)
@property (nonatomic, assign) BOOL select;
@end

NS_ASSUME_NONNULL_END

